package st.business.tepth.business.taskallocation.lag;

import java.util.List;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.LagInfoBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-06-10 14:31
 */

public interface LagContract {
    interface View extends BaseView {
        void showData(List<LagInfoBean> lagInfoBeans);
    }

    interface Model extends BaseModel {
        Disposable getLagInfo(String token, int repairId,
                              OnDataConvertListener<List<LagInfoBean>> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getLagInfo(String token, int repairId);
    }
}
